-- GENERATED SPELL FOR [Ravaged Corpse] --


function spell0_1526(pUnit, Event) --@Disease Touch,n/a--
pUnit:FullCastSpellOnTarget(3234,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1526', 577, 1)
end

function Sorts_1526(pUnit, Event)
local choix_sorts_1526 = math.random(0, 0)
if choix_sorts_1526 == 0 then
pUnit:RegisterEvent('spell0_1526', 1, 1)
end
end

function mob1526_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1526', math.random(1500, 3000), 1)
end

function mob1526_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1526_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1526_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1526, 1, 'mob1526_Action')
RegisterUnitEvent(1526, 2, 'mob1526_Leave')
RegisterUnitEvent(1526, 3, 'mob1526_Kill')
RegisterUnitEvent(1526, 4, 'mob1526_Die')
